package cn.joker.feign;

import cn.joker.feign.fallback.RedisFeignClientFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(
        name = "microservice-redis",
        value = "microservice-redis",
        fallbackFactory = RedisFeignClientFallbackFactory.class
)
public interface RedisFeignClient {

    @GetMapping("/redis/set")
    String set();

    @GetMapping("/redis/get")
    Object get();
}
